package base.iterator.array;



public class Main1 {

    public static void main(String[] args) {
        BookShelf bookShelf = new BookShelf(3);
        bookShelf.appendBook(new Book("a"));
        bookShelf.appendBook(new Book("b"));
        bookShelf.appendBook(new Book("c"));
        Iterator it = (Iterator) bookShelf.iterator();
        while(it.hasNext()) {
            System.out.println(it.next());
        }
    }

}
